<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">
        <meta name="description" content="">
        <title>{$reply['title']}</title>
        <script src="../addons/haoman_base/base/zepto.min.js" type="text/javascript"></script>
    </head>
<style>
  body{background-color:#fff;}
	img{max-width:100%!important;}
  body,div{margin:0; padding:0;}
  .FontScroll{font-size: 32px;color: #059b3a;text-align: center;width: 90%;margin-left: 5%;margin-top: 10%;font-weight: bold}
a{color: #fff;}
</style>

<body>
<!--微信无法访问-->
{if $type==1}
<div style="display: block">
    <div class="FontScroll">
        非微信内无法参与活动
    </div>
    <div style="position:relative; width:200px; height:200px;border: 1px solid #eee;left: 50%;margin-left: -100px;top: 50px;; z-index:-1"><img src="{php echo toimage($reply['up_qrcode'])}" style="width: 100%"></div>
    <div class="FontScroll one" style="margin-top: 20%;line-height: 44px;">
        请扫描二维码，或添加微信公众号 '{$send_name}' 回复 "<span style="color: red">{$key_word}</span>"参与活动
    </div>
</div>
{else}
<!--IP地址受到限制-->
<div style="display: block">
    <div style="margin-top:25%;width:100%;text-align: center">
           <img src="../addons/haoman_dpm/images/noip.png" style="width:160px;height: 160px;border-radius: 50%;">
           <p style="font-size: 32px;color:#059b3a;">温馨提示</p>
        <div style="width: 90%;line-height: 26px;text-indent: 2em;margin-left: 5%;">
            本次活动仅限部分地区参加，经测验，你的所在的位置，不在活动范围内，谢谢您的关注。
        </div>
        {if empty($reply['noip_url'])}{else}<a href="{$reply['noip_url']}">{/if}
        <!-- <button style="margin-top: 20px;width: 50%;height: 40px;line-height: 40px;background: #f56733;border: none;border-radius: 3px;color: #fff;font-size: 20px;" id="close">玩玩其他</button> -->
        {if empty($reply['noip_url'])}{else}</a>{/if}
    </div>

</div>

{/if}


</body>


<!-- 微信分享设置 -->
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script type="text/javascript">
        wx.config({
            debug:false,
            appId: '{$package["appId"]}',
            timestamp: '{$package["timestamp"]}',
            nonceStr: '{$package["nonceStr"]}',
            signature: '{$package["signature"]}',
            jsApiList: [
                'onMenuShareTimeline','onMenuShareAppMessage','onMenuShareWeibo'
            ]
        });
        var sharedata = {
            "imgUrl" : "{$shareimg}",
            "link" : "{$sharelink}",
            "desc" : "{$sharedesc}",
            "title" : "{$sharetitle}"
        };

        wx.ready(function () {

            wx.hideOptionMenu();
        });

    </script>

</html>